#include "roman11i.h"
#include <nds.h>

using namespace WoopsiUI;

static const u16 Roman11i_glyphdata[491] = {
/* '!' */	0x2524,0x8400,0x0000,
/* '"' */	0x55A0,0x0000,0x0000,0x0000,
/* '#' */	0x28AF,0xD24B,0xF514,0x0000,0x0000,0x0000,
/* '$' */	0x08F5,0x5430,0x6965,0x7880,0x0000,0x0000,
/* '%' */	0x7149,0x251D,0x00B8,0xA492,0x8E00,0x0000,0x0000,0x0000,
/* '&' */	0x1892,0x4A72,0x589D,0x0000,0x0000,0x0000,
/* ''' */	0x5800,0x0000,
/* '(' */	0x1244,0x8888,0x8400,0x0000,
/* ')' */	0x2111,0x1122,0x4800,0x0000,
/* '*' */	0x5D50,0x0000,0x0000,
/* '+' */	0x0008,0x4F90,0x8000,0x0000,0x0000,
/* ',' */	0x0001,0x6000,
/* '-' */	0x0000,0x0F00,0x0000,0x0000,
/* '.' */	0x0100,
/* '/' */	0x1224,0x4880,0x0000,0x0000,
/* '0' */	0x3253,0x18CA,0x4C00,0x0000,0x0000,
/* '1' */	0x2E92,0x9200,0x0000,
/* '2' */	0x3242,0x2222,0x1E00,0x0000,0x0000,
/* '3' */	0x3242,0x6086,0x2E00,0x0000,0x0000,
/* '4' */	0x08CC,0xA97C,0x8400,0x0000,0x0000,
/* '5' */	0x7A2D,0x9086,0x4C00,0x0000,0x0000,
/* '6' */	0x3261,0x6CC6,0x4C00,0x0000,0x0000,
/* '7' */	0xF122,0x4488,0x0000,0x0000,
/* '8' */	0x3252,0x64C6,0x2E00,0x0000,0x0000,
/* '9' */	0x3263,0x3686,0x4C00,0x0000,0x0000,
/* ':' */	0x0402,0x0000,
/* ';' */	0x0080,0x0250,0x0000,
/* '<' */	0x0002,0xE838,0x2000,0x0000,0x0000,
/* '=' */	0x0001,0xF07C,0x0000,0x0000,0x0000,
/* '>' */	0x0020,0xE0BA,0x0000,0x0000,0x0000,
/* '?' */	0x7442,0x2220,0x0800,0x0000,0x0000,
/* '@' */	0x1F08,0x24D6,0x4DA2,0x689A,0x6A6C,0x4058,0x21F0,0x0000,0x0000,
/* 'A' */	0x0851,0x4925,0xF461,0x0000,0x0000,0x0000,
/* 'B' */	0x3C94,0x5E45,0x187E,0x0000,0x0000,0x0000,
/* 'C' */	0x3918,0x2082,0x189C,0x0000,0x0000,0x0000,
/* 'D' */	0x3C45,0x0A14,0x2861,0x7C00,0x0000,0x0000,0x0000,
/* 'E' */	0x3E41,0x03E4,0x0820,0x7E00,0x0000,0x0000,0x0000,
/* 'F' */	0x3E41,0x03E4,0x0820,0x4000,0x0000,0x0000,0x0000,
/* 'G' */	0x3C86,0x0409,0xF0A1,0x3C00,0x0000,0x0000,0x0000,
/* 'H' */	0x2121,0x427E,0x4242,0x8484,0x0000,0x0000,0x0000,
/* 'I' */	0x2524,0xA400,0x0000,
/* 'J' */	0x0842,0x214A,0x4C00,0x0000,0x0000,
/* 'K' */	0x24A5,0x1851,0x48A2,0x0000,0x0000,0x0000,
/* 'L' */	0x2110,0x8422,0x1F00,0x0000,0x0000,
/* 'M' */	0x31A9,0x94CA,0xA552,0xCA69,0x2400,0x0000,0x0000,0x0000,
/* 'N' */	0x2131,0x5252,0x4A4A,0x8C84,0x0000,0x0000,0x0000,
/* 'O' */	0x3C86,0x0C18,0x3061,0x3C00,0x0000,0x0000,0x0000,
/* 'P' */	0x3C45,0x0A17,0xC820,0x4000,0x0000,0x0000,0x0000,
/* 'Q' */	0x3C85,0x0C18,0x30A7,0x3C04,0x0000,0x0000,0x0000,
/* 'R' */	0x3E45,0x0BE4,0x8921,0x4200,0x0000,0x0000,0x0000,
/* 'S' */	0x3C85,0x0180,0x90A1,0x3C00,0x0000,0x0000,0x0000,
/* 'T' */	0xFE20,0x4102,0x0410,0x2000,0x0000,0x0000,0x0000,
/* 'U' */	0x4285,0x1428,0x50A2,0x3800,0x0000,0x0000,0x0000,
/* 'V' */	0x8618,0xA492,0x8A10,0x0000,0x0000,0x0000,
/* 'W' */	0x8463,0x194A,0x52A5,0x294C,0x6210,0x0000,0x0000,0x0000,0x0000,
/* 'X' */	0x4122,0x1418,0x1828,0x4484,0x0000,0x0000,0x0000,
/* 'Y' */	0x8625,0x1420,0x8410,0x0000,0x0000,0x0000,
/* 'Z' */	0x7C10,0x8421,0x083F,0x0000,0x0000,0x0000,
/* '[' */	0x3244,0x4448,0x8C00,0x0000,
/* '\' */	0x9124,0x8900,0x0000,
/* ']' */	0x3112,0x2224,0x4C00,0x0000,
/* '^' */	0x2295,0x1000,0x0000,0x0000,0x0000,
/* '_' */	0x0000,0x0000,0x0007,0xC000,0x0000,
/* '`' */	0x9000,0x0000,
/* 'a' */	0x000E,0x90FA,0x5E00,0x0000,0x0000,
/* 'b' */	0x2085,0x9945,0x1CAC,0x0000,0x0000,0x0000,
/* 'c' */	0x000C,0x9842,0x4C00,0x0000,0x0000,
/* 'd' */	0x0412,0x968A,0x2B14,0x0000,0x0000,0x0000,
/* 'e' */	0x000C,0x9FC2,0x4C00,0x0000,0x0000,
/* 'f' */	0x34E4,0x8888,0x0000,0x0000,
/* 'g' */	0x0003,0x4B45,0x148E,0x89C0,0x0000,0x0000,
/* 'h' */	0x2114,0xD4A6,0x5200,0x0000,0x0000,
/* 'i' */	0x2124,0xA400,0x0000,
/* 'j' */	0x1022,0x2244,0x4800,0x0000,
/* 'k' */	0x2112,0xA62A,0x5200,0x0000,0x0000,
/* 'l' */	0x2524,0xA400,0x0000,
/* 'm' */	0x0000,0x526D,0x4949,0x9292,0x0000,0x0000,0x0000,
/* 'n' */	0x0014,0xD4A6,0x5200,0x0000,0x0000,
/* 'o' */	0x001C,0x98C6,0x4E00,0x0000,0x0000,
/* 'p' */	0x0002,0x8D45,0x1694,0x8200,0x0000,0x0000,
/* 'q' */	0x0007,0x538A,0x299A,0x1040,0x0000,0x0000,
/* 'r' */	0x0056,0x4888,0x0000,0x0000,
/* 's' */	0x000C,0x960E,0x2E00,0x0000,0x0000,
/* 't' */	0x4BA9,0x2600,0x0000,
/* 'u' */	0x0012,0x94C6,0xDA00,0x0000,0x0000,
/* 'v' */	0x0023,0x2951,0x8800,0x0000,0x0000,
/* 'w' */	0x0002,0x4D9B,0x5B36,0x4800,0x0000,0x0000,0x0000,
/* 'x' */	0x0004,0x4A10,0xC4A1,0x0000,0x0000,0x0000,
/* 'y' */	0x0004,0x5249,0x4308,0x2300,0x0000,0x0000,
/* 'z' */	0x001E,0x2211,0x1E00,0x0000,0x0000,
/* '{' */	0x1884,0x4C21,0x0843,0x0000,0x0000,
/* '|' */	0xFFC0,
/* '}' */	0x3084,0x210C,0x8846,0x0000,0x0000,
/* '~' */	0x0001,0xDB80,0x0000,0x0000,0x0000,
/* 0x7F */	0x1E24,0x9122,0x4912,0x24F0,0x0000,0x0000,0x0000,
};

static const u16 Roman11i_offset[95] = {
    0,    3,    7,   13,   19,   27,   33,   35,   39,   43,   46,   51,   53,   57,   58,   62,
   67,   70,   75,   80,   85,   90,   95,   99,  104,  109,  111,  114,  119,  124,  129,  134,
  143,  149,  155,  161,  168,  175,  182,  189,  196,  199,  204,  210,  215,  223,  230,  237,
  244,  251,  258,  265,  272,  279,  285,  294,  301,  307,  313,  317,  320,  324,  329,  334,
  336,  341,  347,  352,  358,  363,  367,  373,  378,  381,  385,  390,  393,  400,  405,  410,
  416,  422,  426,  431,  434,  439,  444,  451,  457,  463,  468,  473,  474,  479,  484
};

static const u8 Roman11i_width[95] = {
 3, 4, 6, 6, 9, 6, 2, 4, 4, 3, 5, 2, 4, 1, 4, 5,
 3, 5, 5, 5, 5, 5, 4, 5, 5, 2, 3, 5, 5, 5, 5,10,
 6, 6, 6, 7, 7, 7, 7, 8, 3, 5, 6, 5, 9, 8, 7, 7,
 7, 7, 7, 7, 7, 6,10, 8, 6, 6, 4, 3, 4, 5, 5, 2,
 5, 6, 5, 6, 5, 4, 6, 5, 3, 4, 5, 3, 8, 5, 5, 6,
 6, 4, 5, 3, 5, 5, 7, 6, 6, 5, 5, 1, 5, 5, 7
};

Roman11i::Roman11i(u8 fixedWidth) : PackedFont1 (
	33,
	127,
	Roman11i_glyphdata,
	Roman11i_offset,
	Roman11i_width,
	14,
	4,
	7,
	10
) {
	if (fixedWidth) setFontWidth(fixedWidth);
};
